﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using WPFExcelReport.Helpers;
using ReflectionStudio.Core.Events;
namespace WPFExcelReport
{

    public partial class PYH
    {
        public static object PlcWrite(string command, object SlaveId, object StartAddress, object DataLength, object DataSend)

        {
            byte[] data = null;
            try
            {
                switch(command)
                {
                    default:
                    case "R":
                         break;
                    case "T":
                         break;
                    case "Z":
                         break;  
                }
                data = System.Text.Encoding.ASCII.GetBytes(command);
                
            }
            catch (Exception ex)
            {
                Helpers.LogHelper.error(ex.StackTrace + ex.Message);
            }
            return data;

        } 
    }
}
